using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using Microsoft.AceEngineering.SPM.SPMDataLayer;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class AttributesBL
    {
        public static List<PropertyCDE> GetEnableAttributes(string dir)
        {
            return AttributesDL.GetAttributes(true, dir);
        }
        public static List<PropertyCDE> GetDisableAttributes(string dir)
        {
            return AttributesDL.GetAttributes(false, dir);
        }
        public static void DisableAttribute(string attributeID, string modifiedBy)
        {
            AttributesDL.UpdateAttribute(attributeID, modifiedBy, false);
        }
        public static void EnableAttribute(string attributeID, string modifiedBy)
        {
            AttributesDL.UpdateAttribute(attributeID, modifiedBy, true);
        }
    }
}
